package com.cloud.pikachu.storage.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时清理过期图片任务
 *
 * @author : ABug
 * @Date : 2019/5/20 9:21
 * @UpdateDate : 2019/5/20 9:21
 * @Version V1.0.0
 **/
@Slf4j
@Component
public class ClearOssImageTask {

    /**
     * 每分钟执行一次
     */
    @Scheduled(fixedRate = 60000)
    public void task(){
        log.info("===执行清理本地");
    }
}
